﻿import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:azring/pages/action/create_plan/create_plan_view.dart';

/// 由问卷生成健康计划页面（复用创建计划页结构，标题固定）
class QuestionnairePlanView extends StatelessWidget {
  const QuestionnairePlanView({super.key});

  @override
  Widget build(BuildContext context) {
    // 从路由参数中获取 planId
    // isViewMode 会在 CreatePlanLogic.onInit() 中根据 planId 自动设置
    final arguments = Get.arguments as Map<String, dynamic>?;
    final planId = arguments?['planId'] as String?;

    return CreatePlanView(
      title: '由问卷生成健康计划',
      planId: planId,
    );
  }
}
